#include<iostream>
int main()
{
	using namespace std;
	char ch;
	int spaces=0;
	int total=0;
	cout<<"Strat!\n"<<endl;
	cin.get(ch);
	while(ch!='.')
	{
		if(ch==' ')
			++spaces;
		++total;
		cin.get(ch);
	}
	cout<<spaces<<" spaces, "<<total;
	cout<<" characters total in sentence\n";
	return 0;
}
